package com.yang.mapper;


import com.yang.pojo.SysUser;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;
import java.util.Map;

/**
 * Created by 杨天可 on 2022/3/29 10:54
 */
public interface SysUserMapper extends Mapper<SysUser> {
    /* 根据电话查找用户信息*/
    SysUser findByPhone(String phone);

    /* 根据用户id查找用户信息*/
    SysUser findById(Integer userId);

    /* 获取商家列表*/
    List<SysUser> getUserListTotal(String userName, String phone, String startTime, String endTime);

    /* 获取商家列表分页*/
    List<SysUser> getUserListLimit(String userName, String phone, String startTime, String endTime,Integer startPage,Integer endPage);

    int deleteSysUser(Integer userId);

    SysUser findByEmail(String email);

    int updateById(SysUser sysUser);
}
